/**
 * Copyright (c) 2015-2017, Henry Yang 杨勇 (gismail@foxmail.com).
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * <p>
 * http://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.mapfinal.server.auth.model;

import com.jfinal.plugin.activerecord.IBean;

import com.lambkit.common.model.LambkitModel;

/**
 * @author yangyong 
 * @website: www.lambkit.com
 * @email: gismail@foxmail.com
 * @date 2020-09-23
 * @version 1.0
 * @since 1.0
 */
@SuppressWarnings("serial")
public abstract class UserBase<M extends UserBase<M>> extends LambkitModel<M> implements IBean {

	public String getTableName() {
		return "lk_users";
	}
	
	@Override
	public Class<?> _getPrimaryType() {
		// sqlite 会导致 JFinal 中 getPrimaryType 获取到的都是 String 类型
		return Long.class;
	}
    
	public java.lang.Long getId() {
		return this.get("id");
	}

	public void setId(java.lang.Long id) {
		this.set("id", id);
	}
	public java.lang.String getUuid() {
		return this.get("uuid");
	}

	public void setUuid(java.lang.String uuid) {
		this.set("uuid", uuid);
	}
	public java.lang.String getUserLogin() {
		return this.get("user_login");
	}

	public void setUserLogin(java.lang.String userLogin) {
		this.set("user_login", userLogin);
	}
	public java.lang.String getUserPass() {
		return this.get("user_pass");
	}

	public void setUserPass(java.lang.String userPass) {
		this.set("user_pass", userPass);
	}
	public java.lang.String getUserNicename() {
		return this.get("user_nicename");
	}

	public void setUserNicename(java.lang.String userNicename) {
		this.set("user_nicename", userNicename);
	}
	public java.lang.String getUserEmail() {
		return this.get("user_email");
	}

	public void setUserEmail(java.lang.String userEmail) {
		this.set("user_email", userEmail);
	}
	public java.lang.String getUserUrl() {
		return this.get("user_url");
	}

	public void setUserUrl(java.lang.String userUrl) {
		this.set("user_url", userUrl);
	}
	public java.lang.String getAvatar() {
		return this.get("avatar");
	}

	public void setAvatar(java.lang.String avatar) {
		this.set("avatar", avatar);
	}
	public java.lang.Integer getSex() {
		return this.get("sex");
	}

	public void setSex(java.lang.Integer sex) {
		this.set("sex", sex);
	}
	public java.util.Date getBirthday() {
		return this.get("birthday");
	}

	public void setBirthday(java.util.Date birthday) {
		this.set("birthday", birthday);
	}
	public java.lang.String getSignature() {
		return this.get("signature");
	}

	public void setSignature(java.lang.String signature) {
		this.set("signature", signature);
	}
	public java.lang.String getLastLoginIp() {
		return this.get("last_login_ip");
	}

	public void setLastLoginIp(java.lang.String lastLoginIp) {
		this.set("last_login_ip", lastLoginIp);
	}
	public java.util.Date getLastLoginTime() {
		return this.get("last_login_time");
	}

	public void setLastLoginTime(java.util.Date lastLoginTime) {
		this.set("last_login_time", lastLoginTime);
	}
	public java.util.Date getCreateTime() {
		return this.get("create_time");
	}

	public void setCreateTime(java.util.Date createTime) {
		this.set("create_time", createTime);
	}
	public java.lang.String getUserActivationKey() {
		return this.get("user_activation_key");
	}

	public void setUserActivationKey(java.lang.String userActivationKey) {
		this.set("user_activation_key", userActivationKey);
	}
	public java.lang.Integer getUserStatus() {
		return this.get("user_status");
	}

	public void setUserStatus(java.lang.Integer userStatus) {
		this.set("user_status", userStatus);
	}
	public java.lang.Integer getScore() {
		return this.get("score");
	}

	public void setScore(java.lang.Integer score) {
		this.set("score", score);
	}
	public java.lang.Integer getUserType() {
		return this.get("user_type");
	}

	public void setUserType(java.lang.Integer userType) {
		this.set("user_type", userType);
	}
	public java.lang.String getSalt() {
		return this.get("salt");
	}

	public void setSalt(java.lang.String salt) {
		this.set("salt", salt);
	}
	public java.lang.String getUserPhone() {
		return this.get("user_phone");
	}

	public void setUserPhone(java.lang.String userPhone) {
		this.set("user_phone", userPhone);
	}
}
